public class B2_2_2
{
	public static void main(String [] args)
	{
		int n = 5;
		int fakultaet = 1;
		int i = 1;
		while (i <= n)
			{
			fakultaet = fakultaet * i;
			i ++;
			}
		
		System.out.println(fakultaet);
	}
}